package com.example.Web_chat.mapper;

import com.example.Web_chat.model.Friend;
import com.example.Web_chat.model.FriendRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FriendMapper {
    //查询好友列表
    List<Friend> selectFriendList(int userId);
    // 添加好友
    int addFriend(@Param("userId") int userId, @Param("friendId") int friendId);
    // 删除好友
    int deleteFriend(int userId, int friendId);


}
